# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         question1
# Description:
# Author:       asus
# Date:         2019/1/17
#-------------------------------------------------------------------------------


# 请将下列数值转成另外三种进制
a = 12345
b = 0xF98A
c = 0b1100010110
print(a)
print("十进制转二，八，十六进制")
print(bin(a))
print(oct(a))
print(hex(a))
print(end='\n')
print(hex(b))
print("十六进制转二，八，十六进制")
print(bin(b))
print(oct(b))
print(int("0xF98A",16))
print(end='\n')
print(bin(c))
print("二进制转八，十，十六进制")
print(oct(c))
print(int("0b1100010110",2))
print(hex(c))